package IOpearation;

import Book.Book;
import Book.BookList;

/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2021-12-24
 * Time:10:49
 */
public class DisplayOpearation implements IOPearation{
    @Override
    public void work(BookList bookList) {
        System.out.println("打印全部书籍");
        int size = bookList.getUsedSize();
        for (int i = 0; i < size; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }
}
